<?php
return [
    // 巨量
    'jl' => [
        'empower_url'  => 'https://open.oceanengine.com/audit/oauth.html?app_id=%s&redirect_uri=%s&state=%s',
        'redirect_uri' => 'adminapi/oauth/callback',
    ],

    // UC
    'uc' => [
        'redirect_uri'        => 'adminapi/oauth/ucCallback',

        // 授权广告主
        'advertiser_api'      => 'https://e.uc.cn/shc/api/account/getChildrenAccountByAccountId',
        'report_api'          => 'https://e.uc.cn/sa-api/report/getDetailAsync',
        'download_report_api' => 'https://e.uc.cn/sa-api/report/downloadTaskResult',
    ],

    // 快手
    'ks' => [
        'oauth_type'   => 'advertiser',
        'empower_url'  => 'https://developers.e.kuaishou.com/tools/authorize?app_id=%s&scope=%s&redirect_uri=%s&state=%s&oauth_type=%s',
        'redirect_uri' => 'adminapi/oauth/ksCallback',

        'token_api'       => 'https://ad.e.kuaishou.com/rest/openapi/oauth2/authorize/access_token',
        'ref_token_api'   => 'https://ad.e.kuaishou.com/rest/openapi/oauth2/authorize/refresh_token',
        // 广告主授权信息
        'advertiser_api'  => 'https://ad.e.kuaishou.com/rest/openapi/gw/uc/v1/advertisers',
        'report_api'      => 'https://ad.e.kuaishou.com/rest/openapi/v1/report/account_report',
        'unit_report_api' => 'https://ad.e.kuaishou.com/rest/openapi/v1/report/unit_report',

        'creative_api' => 'https://ad.e.kuaishou.com/rest/openapi/gw/dsp/advanced_creative/list',
        'video_api'    => 'https://ad.e.kuaishou.com/rest/openapi/v1/file/ad/video/get',
    ],


    'bd' => [
        'redirect_uri'   => 'adminapi/oauth/bdCallback',
        'empower_url'    => 'https://u.baidu.com/oauth/page/index?platformId=%s&appId=%s&scope=1007690&state=%s&callback=%s',
        'token_api'      => 'https://u.baidu.com/oauth/accessToken',
        'ref_token_api'  => 'https://u.baidu.com/oauth/refreshToken',
        'user_api'       => 'https://u.baidu.com/oauth/getUserInfo',
        'advertiser_api' => 'https://api.baidu.com/json/feed/v1/MccFeedService/getUserListByMccid',
        'report_api'     => 'https://api.baidu.com/json/sms/service/OpenApiReportService/getReportData',
    ],


    'vivo'         => [
        'redirect_uri'   => 'adminapi/oauth/vivoCallback',
        'empower_url'    => 'https://open-ad.vivo.com.cn/OAuth?clientId=%s&state=%s&redirectUri=%s',
        'token_api'      => 'https://marketing-api.vivo.com.cn/openapi/v1/oauth2/token',
        'ref_token_api'  => 'https://marketing-api.vivo.com.cn/openapi/v1/oauth2/refreshToken',
        'advertiser_api' => 'https://marketing-api.vivo.com.cn/openapi/v1/account/advertiser/query',

        'report_api' => 'https://api.baidu.com/json/sms/service/OpenApiReportService/getReportData',
    ],

    // 媒体回调地址
    'redirect_url' => env('media.redirect_url')

];
